__author__ = 'Serprutiy'

from optparse import OptionParser

usage = "usage: %prog [options] arg1 arg2"
parser = OptionParser(usage=usage, version='%prog 9.9.9')
parser.add_option('-f', '--file', dest='filename', help='write report to FILE', metavar='FILE', action='store', type='string')
parser.add_option('-q', '--quiet', action='store_false', dest='verbose', default=False,
                  help="don't print status message to stdout")
# parser.set_default('filename', '1.txt')

# args = ['-f', 'foo.txt']
(options, args) = parser.parse_args()
print(options)
print(options.filename)
print(args)